*{
    margin: 0;
    padding: 0;
}

body{
    background-color: #f3f5f7;
}

.w{
    width: 1202px;
    margin:auto;
}

ul li{
    list-style: none;
}

a{
    text-decoration: none;
}

button {
    /* 去掉button的默认边框 */
    border: 0;  
}

/* 清楚浮动  当设置了宽的的时候可以不用清除浮动 */
.clearfix::before,.clearfix::after{
    content: '';
    display: table;
}

.clearfix::after{
    content: '';
    clear: both;
}
/* 设置兼容性 */
.clearfix{
    *zoom: 1; 
}
/* 1 头部的制作 */
.header{
    height: 42px;
    margin: 30px  auto;
}

.header .logo{
    float: left;
    width: 198px;
    height: 42px;
}

.header .nav {
    float:left;
    margin-left: 60px;
}

.header .nav ul li{
    float: left;
    margin:0 15px;
}

.header .nav ul li a{
    float: left;
    display: block;
    height: 42px;
    padding: 0 10px;
    line-height: 42px;
    font-size: 18px;
    font-family: Regular ;
    color: #050505;
}

.header .nav ul li a:hover{
   color: #00a4ff;
   border-bottom: #00a4ff;
}

.header .search{
    float: left;
    width: 412px;
    height: 42px;
    margin-left:70px;
}

.header .search input{
    float:left;
    width: 340px;
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: 0;
    padding-left: 15px;
    font-size: 14px;
    color:#c6c7c7;
}

.header .search button{
    float: left;
    width: 50px;
    height: 42px;
    background-image: url(../img/btn.png);
}

.header .user {
    float: right;
    margin:0 37px;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
    color: #a7a8a9;
}

/* 2 版心开始了 */
.banner {
    height: 421px;
    background-color: #1c036c;
    background: url(../img/banner.png)  no-repeat  top center;
}

.banner .w {
    margin-top: 30px;
}
.banner  .w .sub_nav{
    float: left;
    width: 190px;
    height: 421px;
    background-color: rgba(0,0,0,0.2);
}

.banner .w .center {
    float: left;
    
}

.banner .w ul li {
    padding: 0 22px;
    height: 45px;
    line-height: 45px;
}


.banner .w ul li a{
    font-size: 14px;
    color: #918da2;
}

.banner .w ul li a:hover{
    color:#00a4ff;
}

.banner .w ul li a span {
    float: right;
}

.course {
    float: right;
    margin-top: 50px;
    width: 230px;
    height: 300px;
    background-color: #fff;
}
.course h2 {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    color: #fff;
}

.bd {
    padding: 0 20px;
}
.bd ul li {
    padding: 14px 0;
    border-bottom: 1px solid #ccc;
}
.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
    font-weight: 700;
}

.bd .more {
    display: block;
    height: 38px;
    border: 1px solid #00a4ff;
    margin-top: 25px;
    text-align: center;
    line-height: 38px;
    color: #00a4ff;
    font-size: 16px;
    font-weight: 700;
}
.goods {
    margin-top:10px;
    height: 60px;
    line-height: 60px;
    box-shadow: 0px 2px 2px rgb(0,0,0,0.2);
    background-color: #fff;
}
.goods h3{
    float:left;
    padding-left: 30px;
    font-size: 16px;
    color: #00a4ff;
}
.goods ul {
    float:left;
    margin-left: 30px;
}

.goods ul li{
    float:left;
}
.goods ul li a{
    padding: 0 30px;
    font-size: 14px;
    border-left: 1px solid #ccc;
    color: #050505;
}
.goods a{
    float:right;
    padding-right: 30px;
    font-size: 14px;
    color: #00a4ff;
}
/* 4 精品推荐 */
.box .box-hd {
    height: 78px;
    line-height: 78px;
}
.box .box-hd h3 {
    float: left;
    font-size: 20px;
    color:#494949;
}
.box .box-hd a {
    float: right;
    padding-right: 20px;
    font-size: 12px;
    color: #ababab;
}
.box .box-bd {
    width: 1220px;  /* 解决小技巧*/
}
.box .box-bd ul li{
    float: left;
    width: 228px;
    height: 271px;
    padding-right: 16px;
    background-color: #fff;
}

.box .box-bd ul li h4{
    margin:  25px 15px 0 20px;  /*上右下左*/
    font-size: 14px;
    color: #050505;
    font-weight: 500;
}

.box .box-bd ul li .info{
    font-size: 12px;
    color: #b8b8b8;
}

.box .box-bd ul li .info span{
    padding:  25px 15px 0 20px; 
    font-size: 14px;
    color: #ff7c2d;
}
/* 5 中间部分的制作 */
.type{
    margin-top: 20px;
}

.type .w {
    width: 1230px;
}

.type .type-hd {
    height: 60px;
    line-height: 60px;
}

/* 5.1  type的头部制作 */
.type .type-hd h3 {
    float:left;
    width: 230px;
    font-size: 20px;
    color: #b1b2b3;
}
.type .type-hd ul {
    float: left;
    margin-left: 200px ;
}

.type .type-hd ul li {
    float: left;
}
.type .type-hd ul li a{
    padding-right: 50px;
    font-size: 16px;
    color: #bebfc0;
}
.type .type-hd ul li a:hover {
    color: #00a4ff;
}
.type .type-hd a{
    float: right;
    margin-right: 30px;
    font-size: 12px;
    color: #bebfc0;
}

/* type的内容部分的制作 */

.type .type-bd .bd-left {
    float: left;
    width: 230px;
}
/* .type .type-bd .bd-left img {
    width: 100%;
} */
.type .type-bd .bd-right{
    float: right;
}

/* type的右边内容部分的制作   */
.type .type-bd .bd-right ul{
    margin-top: 22px;
}
.type .type-bd .bd-right ul li{
    float:left;
    width: 227px;
    height: 262px;
    margin-right:16px;
    font-size: 12px;
    color: #a9a9a9;
    background-color: #fff;
}

.type .type-bd .bd-right ul li img{
    width: 100%;
}

.type .type-bd .bd-right ul li p{
    height: 61px;
    margin: 25px 20px 0 20px;
    font-size: 14px;
    color: #050505;
}
.type .type-bd .bd-right ul li span{
    padding-left: 23px;
    color: #ea8c11;
}

/* 6 底部的制作 */
.footer {
    background-color: #fff;
    /* 浮动的盒子不用考虑外边距合并的问题 */
    margin-top: 35px;  
    height: 418px;
}

.footer .w {
    /* 上左右下 */
    padding:30px  20px 0;
}
.footer .copyright {
    float:left;
}

.footer .copyright p {
    margin-top: 15px;
    font-size: 12px;
    color: 666;
}

.footer .copyright a{
    display: block;
    margin-top: 15px;
    height: 35px;
    width: 120px;
    line-height: 35px;
    text-align: center;
    font-size: 16px;
    color: #00a4ff;
    border: 1px solid #00a4ff;
}

.footer .links {
    float: right;
}

.footer .links dl {
    float: left;
    margin-left: 51px;
}
.footer .links dl dt{
    font-size: 16px;
    color: #333;
}

.footer .links dl dd{
    font-size: 12px;
    color: #333;
}

